package com.workplan.client.modules.defineworkweek;

import net.customware.gwt.presenter.client.widget.WidgetDisplay;

import com.general.client.basewidget.BaseWidget;
import com.google.gwt.core.client.GWT;
import com.google.gwt.uibinder.client.UiBinder;
import com.google.gwt.uibinder.client.UiField;
import com.google.gwt.user.client.ui.Widget;

public class DefineWorkweek extends BaseWidget implements
		DefineWorkweekPresenter.Display {

	@UiField(provided = true)
	Widget workdays;

	@UiField(provided = true)
	Widget addshift;

	private static DefineWorkweekUiBinder uiBinder = GWT
			.create(DefineWorkweekUiBinder.class);

	interface DefineWorkweekUiBinder extends UiBinder<Widget, DefineWorkweek> {
	}

	public DefineWorkweek() {
	}

	@Override
	public void init() {
		initWidget(uiBinder.createAndBindUi(this));
	}

	@Override
	public void setWorkdays(WidgetDisplay display) {
		workdays = display.asWidget();
	}

	@Override
	public void setAddShifts(WidgetDisplay display) {
		addshift = display.asWidget();
	}

}
